<!-- loaded dsquared template module -->
<script type="text/javascript">
$(document).ready(function() {
	$("#bg_left").fadeIn("slow");
	$("#header_bg_right").fadeIn("slow");
});



<?php

if (strtolower($area) == "ucp") {
	$template="ucp"; 
	echo<<<STOP
<!-- {$area} -->
$(document).ready(function() {
    $("#header_bg_right").css("z-index","-1");
    $("#bg_right").css("z-index","-1");

	$("#header_bg_right").attr("src", "/modules/templates/ucp/images/squares_bg.jpg");
	
	//alert(file)
	if (file == "index.html") {
	$("#logo").show("slow", function() {
		$("#logo").hide("slow", function() {
    		$("#logo").attr("src", "/modules/templates/ucp/images/ucp_logo.png").show("slow");
  		});
  	});
  	} else {
  		$("#logo").attr("src", "/modules/templates/ucp/images/ucp_logo.png").show("slow");
  	}
  	
  	
  	
	
	//$("#logo").show("slow");
});

	
STOP;
}
else {
	$template = "bubbles";
	echo<<<STOP
$(document).ready(function() {	
	$("#logo").fadeIn("slow");
});
STOP;
}

echo<<<STOP
</script>	
STOP;


$css_files = dir("{$_SERVER['DOCUMENT_ROOT']}/modules/templates/{$template}/css");

while (false !== ($css = $css_files->read())) {
   if($css != '.' && $css != '..') {
   				 echo "<link href=\"http://{$_SERVER['SERVER_NAME']}/modules/templates/{$template}/css/{$css}\" type=\"text/css\" rel=stylesheet />\n";
	 }
}
?>
<script type="text/javascript" src="/modules/templates/templates.js"></script>


<script type="text/javascript">
var _template = new template();
</script>


